package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.User;
import org.hxyjs.page.PageInfo;

public interface UserService {
    /**
     * 查询全部学员
     * @return
     */
    public DTO<User> getAllUsers() throws Exception;
    /**
     * 删除学员
     * @return
     */
    public DTO<User> deleteUserByUno(String uno) throws Exception;
    /**
     * 修改学员
     * @return
     */
    public DTO<User> updateUserByUno(User user) throws Exception;
    /**
     * 增加学员
     * @return
     */
    public DTO<User> addUser(User user) throws Exception;
    /**
     * 分页查询学员
     * @return
     */
    public DTO<User> getUserByPage(PageInfo pageInfo) throws Exception;
    /**
     * ”缓存“分页查询学员
     * @return
     */
    public DTO<User> getUserByPage(PageInfo pageInfo, String cacheId) throws Exception;

}
